package com.heshuai.youdu.application;

import android.app.Application;

/**
 * 1.他是整个程序的入口
 * 2.初始化工作
 * 3.为整个应用的其他模块提供上下文
 */
public class MainApplication extends Application {
    private static  MainApplication mApplication = null;

    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
    }

    public  static  MainApplication getInstance (){
        return  mApplication;
    }
}
